
public class Earthquake{
  int row;
  
  Location location;
  float latitude;
  float longitude;
  float magnitude;
  float depth;
  Date date;
  
  Earthquake next;
  
  int[] quakeMagColors;
  
  int degreeOfClustering = 1;
  
  Earthquake( Date date, float latitude, float longitude, float magnitude, float depth ){
    this.date = date;
    this.latitude = latitude;
    this.longitude = longitude;
    this.magnitude = magnitude;
    this.depth = depth;
    
    location = new Location(latitude, longitude);
  } 
  
  Earthquake( int row, float latitude, float longitude, float magnitude, float depth, Date date ){
    this.row = row;
    this.latitude = latitude;
    this.longitude = longitude;
    this.magnitude = magnitude;
    this.depth = depth;
    this.date = date;
    
    location = new Location(latitude, longitude);
    
    quakeMagColors = new int[7];
    quakeMagColors[0] = 0xFFFEE5D9;
    quakeMagColors[1] = 0xFFFCBBA1;
    quakeMagColors[2] = 0xFFFC9272;
    quakeMagColors[3] = 0xFFFB6A4A;
    quakeMagColors[4] = 0xFFEF3B2C;
    quakeMagColors[5] = 0xFFCB181D;
    quakeMagColors[6] = 0xFF99000D;
  } 
  
}//end class earthquake

